import java.util.ArrayList;


class TestObject {
	private String testone;
	private String testtwo;
	
	public TestObject(String testone, String testtwo) {
		this.testone = testone;
		this.testtwo = testtwo;
	}
	
	public String getTestone() {
		return testone;
	}
	public String getTesttwo() {
		return testtwo;
	}
	
	public void setTestone(String testone) {this.testone = testone; }
	public void setTesttwo(String testtwo) {this.testtwo = testone; }
	
}


public class ArrayListTest {
	public static void main(String[] args) {
		
		ArrayList<TestObject> arrTest = new ArrayList<TestObject>();
		arrTest.add(new TestObject("1111", "1111"));
		arrTest.add(new TestObject("dddd", "dddd"));
		
		System.out.println(Integer.toString(arrTest.size()));
		for (int i = 0; i < arrTest.size(); i++) {
			System.out.println(arrTest.get(i).getTestone() + "<->" + arrTest.get(i).getTesttwo());
		}
	}

	
}